using System;
using digit.Core;
using System.Data;

namespace SMS.SmManager
{
    public class MsgOut_84Info
    {
        #region CONSTRUCTORS
        public MsgOut_84Info()
        {

            this.m_msgOutID = Util.NULL_LONG;
            this.m_msgInID = Util.NULL_LONG;
            this.m_mobileNo = Util.NULL_STRING;
            this.m_receiverMobileNo = Util.NULL_STRING;
            this.m_serviceID = Util.NULL_STRING;
            this.m_commandCode = Util.NULL_STRING;
            this.m_subCode1 = Util.NULL_STRING;
            this.m_subCode2 = Util.NULL_STRING;
            this.m_subCode3 = Util.NULL_STRING;
            this.m_msgOutContent = Util.NULL_STRING;
            this.m_msgInContent = Util.NULL_STRING;
            this.m_requestID = Util.NULL_INT;
            this.m_msgType = Util.NULL_BYTE;
            this.m_contentType = Util.NULL_BYTE;
            this.m_requestTime = Util.NULL_DATETIME;
            this.m_responseTime = Util.NULL_DATETIME;
            this.m_messageID = Util.NULL_STRING;
            this.m_isCDR = Util.NULL_BYTE;
            this.m_isMore = Util.NULL_BYTE;
            this.m_msgTotal = Util.NULL_BYTE;
            this.m_msgIndex = Util.NULL_BYTE;
            this.m_status = Util.NULL_BYTE;
        }
        public MsgOut_84Info(long msgOutID, long msgInID, string mobileNo, string receiverMobileNo, string serviceID, string commandCode, string subCode1, string subCode2, string subCode3, string msgOutContent, string msgInContent, int requestID, byte msgType, byte contentType, DateTime requestTime, DateTime responseTime, string messageID, byte isCDR, byte isMore, byte msgTotal, byte msgIndex, byte status)
        {

            this.m_msgOutID = msgOutID;
            this.m_msgInID = msgInID;
            this.m_mobileNo = mobileNo;
            this.m_receiverMobileNo = receiverMobileNo;
            this.m_serviceID = serviceID;
            this.m_commandCode = commandCode;
            this.m_subCode1 = subCode1;
            this.m_subCode2 = subCode2;
            this.m_subCode3 = subCode3;
            this.m_msgOutContent = msgOutContent;
            this.m_msgInContent = msgInContent;
            this.m_requestID = requestID;
            this.m_msgType = msgType;
            this.m_contentType = contentType;
            this.m_requestTime = requestTime;
            this.m_responseTime = responseTime;
            this.m_messageID = messageID;
            this.m_isCDR = isCDR;
            this.m_isMore = isMore;
            this.m_msgTotal = msgTotal;
            this.m_msgIndex = msgIndex;
            this.m_status = status;
        }
        public MsgOut_84Info(DataRow dRow)
        {

            this.m_msgOutID = (long)Util.ReplaceDBNullTo(dRow["msgOutID"], Util.NULL_LONG);
            this.m_msgInID = (long)Util.ReplaceDBNullTo(dRow["msgInID"], Util.NULL_LONG);
            this.m_mobileNo = Util.ReplaceDBNullTo(dRow["mobileNo"], Util.NULL_STRING).ToString();
            this.m_receiverMobileNo = Util.ReplaceDBNullTo(dRow["receiverMobileNo"], Util.NULL_STRING).ToString();
            this.m_serviceID = Util.ReplaceDBNullTo(dRow["serviceID"], Util.NULL_STRING).ToString();
            this.m_commandCode = Util.ReplaceDBNullTo(dRow["commandCode"], Util.NULL_STRING).ToString();
            this.m_subCode1 = Util.ReplaceDBNullTo(dRow["subCode1"], Util.NULL_STRING).ToString();
            this.m_subCode2 = Util.ReplaceDBNullTo(dRow["subCode2"], Util.NULL_STRING).ToString();
            this.m_subCode3 = Util.ReplaceDBNullTo(dRow["subCode3"], Util.NULL_STRING).ToString();
            this.m_msgOutContent = Util.ReplaceDBNullTo(dRow["msgOutContent"], Util.NULL_STRING).ToString();
            this.m_msgInContent = Util.ReplaceDBNullTo(dRow["msgInContent"], Util.NULL_STRING).ToString();
            this.m_requestID = (int)Util.ReplaceDBNullTo(dRow["requestID"], Util.NULL_INT);
            this.m_msgType = (byte)Util.ReplaceDBNullTo(dRow["msgType"], Util.NULL_BYTE);
            this.m_contentType = (byte)Util.ReplaceDBNullTo(dRow["contentType"], Util.NULL_BYTE);
            this.m_requestTime = (DateTime)Util.ReplaceDBNullTo(dRow["requestTime"], Util.NULL_DATETIME);
            this.m_responseTime = (DateTime)Util.ReplaceDBNullTo(dRow["responseTime"], Util.NULL_DATETIME);
            this.m_messageID = Util.ReplaceDBNullTo(dRow["messageID"], Util.NULL_STRING).ToString();
            this.m_isCDR = (byte)Util.ReplaceDBNullTo(dRow["isCDR"], Util.NULL_BYTE);
            this.m_isMore = (byte)Util.ReplaceDBNullTo(dRow["isMore"], Util.NULL_BYTE);
            this.m_msgTotal = (byte)Util.ReplaceDBNullTo(dRow["msgTotal"], Util.NULL_BYTE);
            this.m_msgIndex = (byte)Util.ReplaceDBNullTo(dRow["msgIndex"], Util.NULL_BYTE);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private long m_msgOutID;
        private long m_msgInID;
        private string m_mobileNo;
        private string m_receiverMobileNo;
        private string m_serviceID;
        private string m_commandCode;
        private string m_subCode1;
        private string m_subCode2;
        private string m_subCode3;
        private string m_msgOutContent;
        private string m_msgInContent;
        private int m_requestID;
        private byte m_msgType;
        private byte m_contentType;
        private DateTime m_requestTime;
        private DateTime m_responseTime;
        private string m_messageID;
        private byte m_isCDR;
        private byte m_isMore;
        private byte m_msgTotal;
        private byte m_msgIndex;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public long MsgOutID
        {
            get
            {
                return this.m_msgOutID;
            }
            set
            {
                this.m_msgOutID = value;
            }
        }

        public long MsgInID
        {
            get
            {
                return this.m_msgInID;
            }
            set
            {
                this.m_msgInID = value;
            }
        }

        public string MobileNo
        {
            get
            {
                return this.m_mobileNo;
            }
            set
            {
                this.m_mobileNo = value;
            }
        }

        public string ReceiverMobileNo
        {
            get
            {
                return this.m_receiverMobileNo;
            }
            set
            {
                this.m_receiverMobileNo = value;
            }
        }

        public string ServiceID
        {
            get
            {
                return this.m_serviceID;
            }
            set
            {
                this.m_serviceID = value;
            }
        }

        public string CommandCode
        {
            get
            {
                return this.m_commandCode;
            }
            set
            {
                this.m_commandCode = value;
            }
        }

        public string SubCode1
        {
            get
            {
                return this.m_subCode1;
            }
            set
            {
                this.m_subCode1 = value;
            }
        }

        public string SubCode2
        {
            get
            {
                return this.m_subCode2;
            }
            set
            {
                this.m_subCode2 = value;
            }
        }

        public string SubCode3
        {
            get
            {
                return this.m_subCode3;
            }
            set
            {
                this.m_subCode3 = value;
            }
        }

        public string MsgOutContent
        {
            get
            {
                return this.m_msgOutContent;
            }
            set
            {
                this.m_msgOutContent = value;
            }
        }

        public string MsgInContent
        {
            get
            {
                return this.m_msgInContent;
            }
            set
            {
                this.m_msgInContent = value;
            }
        }

        public int RequestID
        {
            get
            {
                return this.m_requestID;
            }
            set
            {
                this.m_requestID = value;
            }
        }

        public byte MsgType
        {
            get
            {
                return this.m_msgType;
            }
            set
            {
                this.m_msgType = value;
            }
        }

        public byte ContentType
        {
            get
            {
                return this.m_contentType;
            }
            set
            {
                this.m_contentType = value;
            }
        }

        public DateTime RequestTime
        {
            get
            {
                return this.m_requestTime;
            }
            set
            {
                this.m_requestTime = value;
            }
        }

        public DateTime ResponseTime
        {
            get
            {
                return this.m_responseTime;
            }
            set
            {
                this.m_responseTime = value;
            }
        }

        public string MessageID
        {
            get
            {
                return this.m_messageID;
            }
            set
            {
                this.m_messageID = value;
            }
        }

        public byte IsCDR
        {
            get
            {
                return this.m_isCDR;
            }
            set
            {
                this.m_isCDR = value;
            }
        }

        public byte IsMore
        {
            get
            {
                return this.m_isMore;
            }
            set
            {
                this.m_isMore = value;
            }
        }

        public byte MsgTotal
        {
            get
            {
                return this.m_msgTotal;
            }
            set
            {
                this.m_msgTotal = value;
            }
        }

        public byte MsgIndex
        {
            get
            {
                return this.m_msgIndex;
            }
            set
            {
                this.m_msgIndex = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion
    }
}